package project.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface FileMapper {
    @Insert("insert into user_file value (#{username},#{img})")
    void insertImg(String username, String img);

    @Select("select img from user_file where username = #{username}")
    String selectImgByUsername(String username);

    @Update("update user_file set img = #{img} where username = #{username}")
    void updateImgByUsername(String username, String img);
}
